//
//  oldActivity.m
//  laonianbang
//
//  Created by 勇拓 李 on 18/4/3.
//  Copyright © 2018年 zaiyou. All rights reserved.
//

#import "oldActivity.h"

@implementation oldActivity

- (NSArray *)getPicArray
{
    if (_pic && ![_pic isEqualToString:@""]) {
        NSArray *array = [self.pic componentsSeparatedByString:@","];
        
        return array;
    }
    
    return nil;
}

- (NSString *)getFeeByPeople
{
    if ([_fee integerValue] == 0) {
        return @"免费";
    }
    
    return [NSString stringWithFormat:@"¥%@/人", _fee];
}

- (BOOL)isJoined
{
    return [_isJoin boolValue];
}

- (BOOL)isEnded
{
    return [_isEnd boolValue];
}

@end
